<div class="blog">
    <?php /*<ul class="breadcrumb">
        <li><a href="/">Главная</a> <span class="divider">/</span></li>
        <li><a href="/shops/">Магазины</a> <span class="divider">/</span></li>
        <li class="active"><?=$shop->name ?></li>
    </ul>  */ ?>

    <div class="span9">
        <?php /* 
        <?=Helper_Index::social_buttons(); ?>
        <hr />  */ ?>
        
        <h1 class="pull-left">Бесплатные купоны на скидку и промокоды</h1><br /><br />
       
        <div class="posts">        
            <?=Helper_Index::coupons_list($coupons, $shops) ?>
        </div>
    </div>
    
    <div class="span3">
        <div class="sidebar">
            <div class="widget">
                <h4>Магазины</h4>
                <ul>
                    <?php
                    $top_shops = ORM::factory('shop')->get_top_shops();
                    foreach ($top_shops as $shop) : ?>
                    <?php if ($shop['count']): ?>
                    <li><a href="<?=Helper_Index::coupon_shop_url($shop); ?>"><?=$shop['name'] ?></a> (<?=$shop['count'] ?>)</li>
                    <?php endif; ?>
                    <?php endforeach; ?>
                </ul>
            </div>                             
        </div>                                                
    </div>
</div>